Validate Health Interview Question

Variant of Trapping Water Leetcode Problem