Create BestTimetoBuyandSellStockII.java

Just collect all the incrementing segments if you are not limited to the number of trasacsions.