Mountain Subarray Problem Gfg Java