LSI interview question

FIFO Design