Turing Interview Question

it was technical problem, which i could not crack it in the specified time limit.