ServiceNow Interview Question

leetcode easy. Something along the lines of two sum