Amazon interview question

Similar to leetcode three sum