Visa Inc. interview question

Two sum leetcode and an API question