TEKsystems interview question

Write a code to simulate maze runner