Qualcomm interview question

How would you design a test for creating a username?