Jane Street Interview Question

2 Sum in leetcode question