Fortinet interview question

code improvement