Create maxProfitII.java