Meta Interview Question

They asked the falling water leet code problem