Question d’entretien chez Amazon

Water trapping problem, Maximum number in K length subarray.