text: Here we don 't need to fix K  consecutive element criteria.
code: int temp = frequency_array [ i ] ; frequency_array [ i ] -= temp ; String st = String . Join ( " " , ( char ) ( i + ' a ' ) ) ; while ( temp > 0 ) { ans += st ; temp -- ; } }