Stock Market Problem

Below is Java code that implements three different solutions for the Stock Market problem:

You'll also find a tester class (StockTester.java) that times all 3 solutions on varying problem sizes.