Introduction
Two sum is a classic problem, and one of the most liked problems on leetcode. It seems to be an easy problem yet it is asked frequently in many interviews of big companies like Facebook(meta), Google, Amazon, Microsoft, Adobe, Apple, Net...