The function reflective works for all test cases, the counter c fails