Trillium Trading interview question

some quick-witted question and math question.