Apple Interview Question

Code a 50% duty cycle clock divider.