Pergunta de entrevista da empresa FINRA

Object oriented question and a DB question.