I tried the same code in VS Code and I got the answer as 370, whereas on online compiler I got 153.
Is this related to the compiler/ version I am using on laptop?