Bank of America interview question

SQL