ClearBit Method

Write a method that is called clearBit, which takes a byte, clears the kth bit of that byte from the right, and return the output byte. Note: You may use the only the following bitwise operators: &, |, <<,>>, ~.

For example: byte x = 173; //173 is 10101101

clearBit(x, 3); //would return 10101001.

byte clearBit (byte x, int k){

Sample Solution