Turing Interview Question

i just attended the first round it was coding round