Adeptmind Interview Question

Simple 2 sum type leetcode questions.