Implemented areAllEvenFunction