Achieving a desired number of elements out of a list OCAML

Perhaps move this question to the class forum. But look at what happens for the lengths of 4, 5, etc.