Tarento interview question

Asked to explain the answer for a coding qn