Pregunta de entrevista de Amazon

Water trapping problem, Maximum number in K length subarray.