Question d’entretien chez ServiceNow

coding question, it was done via hackerrank