Pregunta de entrevista de Remitly

Similar to leetcode medium Random Pick with Weight