returns two values by splitting the list at the first position where ok? returns true and reversing the head