Clarion Technologies Interview Question

How do you design an authentication system from scratch?