TD interview question

scenario question