The question here asks to print values up to index n. In the test case, index is 10 but expected output shows 12.
Upon execution of my code, it works just as expected prints the correct result. Please fix the test case here.
The question here asks to print values up to index n. In the test case, index is 10 but expected output shows 12.
Upon execution of my code, it works just as expected prints the correct result. Please fix the test case here.