Amazon Interview Question

Find longest path in maze