Solved medium problem 55.