Added solution to first 3 questions of string manipulation

Please review the code