Softwire interview question

Maze question and Ruby question