Trillium Trading interview question

Calculus question