Part 5 working. Recursive solution found.