Amazon Interview Question

Three sum leetcode #15 and other questions on graph