MAX LENGTH BITONIC SUB ARRAY:INCORRECT OUTPUT

inc[0] should be a[0] and dec[n-1] should be a[n-1]