Tarento Interview Question

Asked to explain the answer for a coding qn