Kaizen Gaming interview question

Solve an exercise in SQL