hello,
giving hints to solve the problem is of more help to learn solving problems.
also links that will explain the working of flip-flops will help.
he might want to read some more about digital circuits on the education section of all about circuits...