Wrong Answer In 2 Test Cases


is the code i have written, is my approach wrong please help.

When you are transferring data from c to a1 just do it by the way: a1=c;