Synopsys Interview Question

Asked me to write logic for digital circuit