Warner Bros. interview question

SQL