Problem Description
NOTE: All numbers can only have digits from the given set.
A = [0, 1, 5] B = 1 C = 2Input 2:
A = [0, 1, 2, 5] B = 2 C = 21
2Output 2:
5
0 and 1 are possibleExplanation 2:
10, 11, 12, 15, 20 are possible
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.