Amazon Interview Question

Joins, window functions, top N salary