Solution to a maze problem given as the final problem on a Hacker Academy competition.