Turing Interview Question

Doing some test that was preorganised