//Sort the characters Ascending/Descending in a given String

Sort the characters Ascending/Descending in a given String

Problem Statement: Given a String, Sort the characters in Ascending/Descending from a given String and return the String



Test Cases

Test Case – 1
Input:  bushansirgur
Output:  abghinrrssuu
Test Case – 2
Input:  bharathsirgur
Output:  aabghhirrrstu



Java Source Code


Well, I am Bushan Sirgur from Banglore, India. Currently, I am working as a Software Developer in a Service Base Company. I am interested in JAVA/J2EE, Angular 2, JavaScript, jQuery, MongoDB.