Goldman Sachs Interview Question

Coderpad assessment was given, array, tap water problem