Pergunta de entrevista da empresa FINRA

String reversion, SQL question about table joining and partitioning.