Objective: how to drain a coconut

Which of the following solutions is more sound in terms of naive physics reasoning?

Choose from:
(A). Poke a hole in the top of the coconut. Turn the coconut upside down over a glass. Allow the coconut to drain completely..
(B). Poke a hole in the top of the coconut. Turn the coconut upside down over a window. Allow the coconut to drain completely..
(A).