Create two functions:
isOdd() to check if a given number is odd using bitwise operator.isEven() to check if a given input is even using regular expressions.Use of % operator is disallowed.
isOdd(3) ➞ "Yes"
// Use Bitwise Operator
isOdd(58) ➞ "No"
// Use Bitwise Operator
isEven("0") ➞ "Yes"
// Use Regular Expression
isEven("-99") ➞ "No"
// Use Regular Expression