Jane Street Interview Question

Write functions on binary trees in OCaml.