Interactive Brokers interview question

Basic Java knowledge, basic math problem, all multiple choice questions.