Presidio Interview Question

Problem solving, i got Leetcode two sum