function solution(my_string) { let answer = []; let str_re = my_string.length; for(let i=0; i<str_re; i++){ answer.push(my_string.slice(i, str_re)); } return answer.sort(); }