TP Interview Question

due to some issues but i feel for it later