Fortinet interview question

easy code challenge