HW6 (Emilijus Grasys)

You need to use next(), not max() in your recursion here, and also deal with the possibility that it might return NULL.