Zendesk Interview Question

easy coding question, but need take some time