Amazon Interview Question

basic sql quaries and programs