BlackBuck interview question

Shortest path in a binary maze