Frage im Vorstellungsgespräch bei Remitly

Similar to a leetcode hard problem utilizing backtracking.