TD interview question

Behavior question