How to sort a string array given in assignment of JAVA DS crux

Not able to code this problem.need directions please