NTT DATA interview question

Basic programming, string reversal, sorting etc