GeoDigital Interview Question

two sum question type leetcode