LSI interview question

Accumulator design