XLAB Interview Question

Two sums on leetcode problem