VideoAmp interview question

Solve an SQL question, it was a coderpad interactive session