to check even or odd using shift operator