Trillium Trading Interview Question

some quick-witted question and math question.