The highly intelligent golden retriever figured out a way to eat the fruit from the tree