It's a simple problem, but you need to provide more information (e.g. what flip flops can you use), and show your attempted solution. Then we can offer guidance.Anybody can this ?
If you post your attempted solution, we can see where you're having problems and what techniques you're using. Then we can offer guidance tailored to your approach.Where is guidance?