Inverted cups problem

Question

Hints

Answer