ServiceNow interview question

algorithm, recursion, data structures - leet code