J.P. Morgan interview question

Shortest path through maze, edit distance.