SelfEmployed.com Interview Question

Two Sum coding question for the technical part