Design a synchronous 3-bit binary UP/DOWN counter uses the following counting pattern: (0,1,3,7,6,4,0,1,3….) the counter will count in this pattern indefinitely when the input X is equal to 1. When the input X =0, the counter will reverse direction and count in the opposite pattern (0,4,6,7,3,1,0…)