ShareChat Interview Question

Rain trapping water problem and solution