Solve array, tree, and maze problems | Meta Interview Question