correct result. why doesnt pass test?
Please check my code below. I tried many solutions, and at the end I decied to use the easiest one. There wasn't loops on the course yet, so I assume that I shouldn't use any of them here. The code gives right answers, but it doesn't "pass" the tests. Could you explain me why is that?