Nagarro interview question

Unique letter code duplicate no. code etc