Apple Interview Question

Explain how a clock gater works, with and without glitches