Reverse String
Problem: Given a string s, return the reversed string.
Input:
s = "hello"
Output:
"olleh"
Palindrome Check
Problem: Determine whether a string s is a palindrome.
Input:
s = "madam"
Output:
true
Count Vowels
Problem: Count total vowels in string s.
Input:
s = "hello"
Output:
2
Count Consonants
Problem: Count total consonants in s.
Input:
s = "hello"
Output:
3
Count Spaces
Problem: Return number of spaces in string s.
Input:
s = "hello world"
Output:
1
Convert to Uppercase
Problem: Convert all characters of s to uppercase.
Input:
s = "python"
Output:
"PYTHON"
Convert to Lowercase
Problem: Convert all characters of s to lowercase.