Question d’entretien chez Fortinet

Write code for the problem [i just made up]