Solved problem 23. 8 seconds.