Solved Please Code This Method In Ocaml And Without Using

Solved Please Code This Method In Ocaml And Without Using