Name.com interview question

A coding question to solve a problem