Mastercard interview question

problema two sum y three sum de leetcode