Print Series, I'm getting the correct output but 2 test cases failed

hey @koushk
I see that you have got a correct answer in the question. Do you have any further doubts?