Interactive Brokers Interview Question

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