Domanda di colloquio di ServiceNow

coding question, it was done via hackerrank