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.!!!

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.!!!

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

expected output should be 42 as (2*4*4)+(2*4)+(2)

first case covers number <355 second case (number <415 && number >= 400) and third case( number < 425 & number >= 420)