Meta Interview Question

Top-K problem and trapping rain water.