The method is persistence rather than puzzle-solving: keep shaking the trees until a banana drops. It is a random reward, so there is no location that guarantees one.
The original answer also notes that the game was due for an update, which may have changed how the item is obtained since then.