Analog Devices interview question

Design a 5 bit self correcting ring counter using 4 flip flops ?