Remitly interview question

Two pointer Leetcode hard problem.