Hexaware Technologies interview question

2 basic array and string coding questions.