Pergunta de entrevista da empresa TikTok

Find the minimum distance path to escape a maze (C++ only)