Amazon interview question

- Hard questions about SQL