JPMorganChase Interview Question

Write a sql query (involved a self join)