I think code is correct still test case is not passed can you tell the mistake please

hello @anantgovil123
image
put these variable inside for loop.