Publicis Sapient Interview Question

Reverse the string, sort the number in array