Thoughts2Binary interview question

solve or traverse a maze by writing pseudo code