The Washington Post interview question

Leetcode question 1 (two sum)