problem 58 solved

AC at first attempt!!