ServiceNow interview question

codility puzzles