Pergunta de entrevista da empresa Forter

in the home assignment we were asked to implement a function that can configure unique names in payment method(using data bases from internet to find all the nicknames for the name) the second interview based on the project that I have done in my study (mainly the one about fullstack) because they were interest in using databases/tables and the one to one method and the one to many method (databases tables)