I think expected output provided is wrong


#1

for the input :
A : 0 1 3 5
B: 3
C: 423

answer should be 42 but it is giving 32 as the expected output.!!!


#2

The expected output is correct - the answer is all 3 digit numbers starts with 1 and starts with 3.


#3

expected output should be 42 as (244)+(2*4)+(2)
first case covers number <355 second case (number <415 && number >= 400) and third case( number < 425 & number >= 420)