Wrong answer for test case 3

For test case 3 the right answer is 46 but in solution text file it was 42, so solution is failing for me.