Given an integer n and a position p (0-indexed from the right), set the bit at that position to 1 and return the result.
setBit(5, 1) => 7
setBit(0, 3) => 8
Waiting for you...
CodeBot will comment on your code as you write...
Click "Run Code" or press Ctrl+Enter to test your solution