TP interview question

i dont remember everything clearly.