Mohit Sharma Interview Question

Reverse the substring, sorting the elements in an array for coding test