How did he do that ?

How did he do that?

There was a river, on the other side of the river was a mango tree. One boy wanted to get one of those mango, there was not a boat, nor the boy knew how to swim. But he still went to the tree to get the mangoes.