Softwire Interview Question

Maze question and Ruby question