Allston Trading interview question

Java algo questions