Google interview question

How would you design a password completeness checker?