Arm Interview Question

Leetcode TwoSum problem, asked to solve on notepad