String around sphere problem

Question

Hints

Answer