Anonymous interview question

Scenario based question to check the behavior.