FINRA interview question

Algorithm, Behaviour questions and Couple of Test cases ideas