Pergunta de entrevista da empresa Consensus Corporation

How would you designed an algorithm to decide whether or not a user's password is weak or strong?