FINRA interview question

Asked to write several SQL scripts and a python data structures questions