Multiple of 3 wrong answer

Wrong ans i saw the editorial but still i cant get AC
please some help

Code
Question

Can you explain your thought process behind the solution?