STMicroelectronics Interview Question

About counter and asked to design them