i am trying to approach this question like finding all the permutation of the string and then sort the array.
find the particular given input string in the array and all the elements after that has to be printed.
Let me know if this correct or we can do it in a better way?