RBC interview question

How would you test if a password is correct.