Create maxProfit.java