Microsoft interview question

create maze and solve it.