Aman Resorts interview question

reverse string