added solution for problem 51: 20s