FINRA interview question

String reversion, SQL question about table joining and partitioning.