LTIMindtree interview question

Array and string based questions.