TEchfest test case doubt cube modulo?

it would be great if anyone could explain me the test cases of the question Cube modulo?