Goldman Sachs interview question

Coderpad assessment was given, array, tap water problem