The Next Number solutions

The Next Number was solved using OCaml by 1 contestant.