Turing Interview Question

Algorthmic problem and time complexity problem