Paytm interview question

implement sorting for comma seperatd values in string array