Apple interview question

Code a 50% duty cycle clock divider.