Xoriant interview question

WAP using streams to check even and odd