Zensar Technologies interview question

String Manipulation, the question was on taking out substring