Meta interview question

They asked the falling water leet code problem