Frage im Vorstellungsgespräch bei Snap

typical leetcode backtracking question with time and space complexity.