TikTok interview question

Write a a maze routing solution using C++