attempt to solve problem 15 in python
tried a different approach
drop debug printing"