Hexaware Technologies interview question

String related questions.