You don't need to read input or print anything. Your task is to complete the function inc() which takes an integer B, astring N as input parameter and returns the string by incrementing the number by one in the same base.
Expected Time Complexity: O(log N) Expected Space Complexity: O(1)
2 <= B <= 16
0000 <= N <= Max value in that base (e.g. 1111 for base 2, FFFF for base 16, etc.)