Create maxProfitiii.java