Amazon Interview Question

Water trapping problem, Maximum number in K length subarray.