Use recursion for `max-element` as requested