Help in Multiple of 3 problem

This post was flagged by the community and is temporarily hidden.

Since it’s an ongoing contest, no-one can view your solution.

I’ve provided a pastebin link now.

Try this test case
2 1 2

Thank you it worked.