Pregunta de entrevista de Wag!

Technical PHP/JS/SQL challenges, not very difficult to resolve it.