first you should choose a kind of filp-floop
for this case u need three flip-floop .
then u sould make a chart that show each case.like this
Qa Qb Qc A B C
0 0 0 0 0 1
0 0 1 0 1 1
0 1 1 1 0 1
1 0 1 0 0 0
Qa,Qb,Qc are the out put of flip flops in last clock pulse and A,B,C are the flip-flops new out put .then reffering to char u select the flip flop input then use Karno chart to simlyfy it and at the end use the gates to desine circute. I will Send u the circute and charts in few hours.