Solution for Jurgensville Restaurant Puzzle in Python