Infineon Technologies interview question

Design counter with up and down