Jane Street interview question

2 Sum in leetcode question