Hexaware Technologies Interview Question

2 basic array and string coding questions.