Moviri interview question

Risolvere una query in SQL