C # Program to sort substrings
using System ; class GFG { public static void substringSort ( String [ ] arr , int n , int maxLen ) { int [ ] count = new int [ maxLen ] ; String [ ] sortedArr = new String [ maxLen ] ; for ( int i = 0 ; i < maxLen ; i ++ ) { count [ i ] = 0 ; sortedArr [ i ] = " " ; }