TELUS interview question

Regarding the assignment what was the problem