Amazon Interview Question

Write code to solve a maze