Apple interview question

Two Sum - Leetcode Easy question