Zendesk interview question

easy coding question, but need take some time