Pregunta de entrevista de Verdantis

A puzzle was asked and database and coding questions.