Amazon interview question

Find longest path in maze