I didn't completely understand the meaning of the question , but i'll still try to answer it.
I assume it to be a 3 bit binary up counter , because nothing's been specified.
Now it has been said that just before the counter is cleared. That is just before outputs show 000 , the last state would be , as i assume , 111.
Now 111 is passed through a full adder.
sum = 1 xor 1 xor 1 = 1.
and , carry = 1.
So J = 1 ,and K=1;
Qnext in JK flip flop is,
Qn = JQ'+K'Q = 1.Q' + 0.Q = Q'
Thus , it can be seen that the JK flip flop is in toggle state.
I might be wrong , kindly correct me if I went wrong somewhere.