EASY LEVEL (1–10)

  1. Reverse String

    Problem: Given a string s, return the reversed string.

Input:
s = "hello"

Output:
"olleh"

  1. Palindrome Check

    Problem: Determine whether a string s is a palindrome.

Input:
s = "madam"

Output:
true

  1. Count Vowels

    Problem: Count total vowels in string s.

Input:
s = "hello"

Output:
2

  1. Count Consonants

    Problem: Count total consonants in s.

Input:
s = "hello"

Output:
3

  1. Count Spaces

    Problem: Return number of spaces in string s.

Input:
s = "hello world"

Output:
1

  1. Convert to Uppercase

    Problem: Convert all characters of s to uppercase.

Input:
s = "python"

Output:
"PYTHON"

  1. Convert to Lowercase

    Problem: Convert all characters of s to lowercase.