Infineon Technologies Interview Question

Design counter with up and down