GE Interview Question

it was graph question to find a path in maze