JPMorganChase interview question

Algorithms Sql questions