TD interview question

See everything on description area.