Amazon Interview Question

series of SQL questions