TikTok Interview Question

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