Simplify "Computing Parity" soln using reduce