Telstra interview question

Passing result