def solution(strings, n):
    answer = []
    answer_s = []
    
    for i in strings:
        answer_s.append(i[n]+i)
    answer_s = sorted(answer_s)
    
    for i in answer_s:
        answer.append(i[1:])
    
    return answer

+ Recent posts