TP interview question

out and ref