Turing interview question

A puzzle to solve using python.