Check Parity of a given number

Checks whether the given number is Even or Odd Parity