Xoriant Interview Question

WAP using streams to check even and odd