Getting Wrong answer for Complete Solutions Python


#1

I tried to check with all there , editorial ,fastest ,lightweight ,solutions for Python 3 all of them return the answer 1 but correct is 685 ,for submission test case