ServiceNow Interview Question

Regular Leetcode algorithms were asked