since the MOD of this problem is 6 because the nos of states this counter will sequence before coming to back original first state.
0-1-0-2-0-3-----sequence
1-2-3-4-5-6 MOD counting
hence the nos of FFs wil be 2^x>=6 which gives x>=3.
Hence MINIMUM nos of J-K flipflops required is 3.