Domanda di colloquio di Remitly

Similar to a leetcode hard problem utilizing backtracking.