3. Introduction
● A sorted array is an array data structure in which each elements is sorted in numerical,
alphabetical or some other order and placed at equally spaced addressed in computer memory.
4. Problem Statement
● Firstly I take BufferedReader for read input string.
● String tokenizer use for read input string and check.
● Stringbuilder use for build string.
5. Used algorithm and reason
● Sorting algorithm is used in this problem.
● Because sorting algorithms to arrange the elements in the problem in a certain order. Various
algorithm have been designed that sort the problem using different methods some of these sort
are more useful than others in certain situations.
8. Conclusion
● I figured it out array sort on string returns non numeric order based on length of the string
rather than actual numerical value. So it wasn’t a string issue at all.