DONE by NONE interview question

Pattern type and String based