Remitly Interview Question

Similar to leetcode medium Random Pick with Weight