문제 링크

정답 :

def solution(rny_string):

    return rny_string.replace('m', 'rn')