@@ -0,0 +1,825 @@
+// https://community.topcoder.com/stat?c=problem_statement&pm=4659%0A%0Apublic class SequenceOfNumbers %7B%0A%09%0A%09public static void selectionSort(String%5B%5D arr) %7B%0A%09%09int lastElementIndex = arr.length - 1;%0A%09%09%0A%09%09for (int subarrayStartIndex = 0; subarrayStartIndex %3C lastElementIndex; ++subarrayStartIndex) %7B%0A%09%09%09int minElementIndex = subarrayStartIndex;%0A%09%09%09%0A%09%09%09for (int i = subarrayStartIndex + 1; i %3C arr.length; ++i) %7B%0A%09%09%09%09if ( Integer.parseInt(arr%5Bi%5D) %3C Integer.parseInt(arr%5BminElementIndex%5D) ) %7B%0A%09%09%09%09%09minElementIndex = i;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09if (minElementIndex != subarrayStartIndex) %7B%0A%09%09%09%09String temp = arr%5BsubarrayStartIndex%5D;%0A%09%09%09%09arr%5BsubarrayStartIndex%5D = arr%5BminElementIndex%5D;%0A%09%09%09%09arr%5BminElementIndex%5D = temp;%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%09public static String%5B%5D rearrange(String%5B%5D sequence) %7B%0A%09%09selectionSort(sequence);%0A%09%09%0A%09%09return sequence;%0A%09%7D%0A%7D%0A

Create SequenceOfNumbers.java