Turing Interview Question

Can you work me through your implementation