https://school.programmers.co.kr/learn/courses/30/lessons/12917
class Solution {
public String solution(String s) {
String answer = "";
char [] arr = s.toCharArray();
char temp;
for (int i = 0; i < arr.length - 1; i++){
for(int j = i + 1; j < arr.length; j++){
if(arr[i] < arr[j]){
temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
}
}
for(int i = 0; i < arr.length; i++){
answer += arr[i];
}
return answer;
}
}