Uncertain acceptance of submission(Color the Cube)

I don’t know what`s happening in the submission as sometime the same answer is accepted and on again submitting the same answer it gives wrong answer with wrong test case(hidden).