Company: Ibm_1aug
Difficulty: medium
Garden Watering System Problem Description In a large resort's botanical garden, there are N × N square plots, arranged neatly in rows and columns. Each plot starts with 0 liters of water. The gardener, Sourabh, uses two types of watering systems: A horizontal sprinkler that waters an entire row of plots at once. A vertical sprinkler that waters an entire column of plots at once. Each time he runs a sprinkler, it adds a certain amount of water to all plots in that row or column. After a series of watering actions, Sourabh wants to know the most watered plot in the garden — that is, the one with the highest amount of water. Your task is to help him figure out how much water that plot has. Input Format The first line contains two integers: N — the number of rows and columns in the garden Q — the number of watering actions The next Q lines each describe a watering action in one of the following formats: WaterRow R X — add X liters to every plot in row R WaterColumn C X — add X liters to e