Eggs problem 1

Question

Hints

Answer