Agoda interview question

They asked 2sum coding leetcode style.