Pocket Gems Interview Question

A key - door path searching question.