Strings:

Q1: Write a program to reverse a given string.

Q2: Implement a program to find the length of a string without using library functions.

Q3: Create a program that counts the number of vowels and consonants in a string.

Q4: Implement a program to check if two strings are anagrams of each other.

Q5: Write a program to concatenate two strings.

Q6: Create a program to find and replace all occurrences of a specific word in a string.

Q7: Implement a program to check if a string is a valid integer (e.g., "123" is valid, but "abc" is not).

Q8: Write a program in C/C++ to count the occurrences of a specific character in a string.

Q9: Write a program to check if a string is a palindrome.

Q10: Create a string variable containing a sentence and use slicing to print the first 5 characters, the last 5 characters, and characters from the 6th to the 10th position.