Amazon interview question

Create a unique id generator with progressing difficulty