Coding Interviews Two Sum Problem Two Sum problem is a classic problem. Let us solve this using five different types from brute force to an optimized approach using Hashtable.