Domanda di colloquio di ServiceNow

basic algorithm question, some question on REST