Probably. I just translated the supposedly correct code from the exercise to prefix syntax without changing the semantics.