Philips Interview Question

Design clock alarm