The humans put various fruits right inside the compound door to lure Josephine inside. A man was waiting to lower the trap door once she went inside to get the fruit. So, Josephine hung around outside the door, looked at the fruit and waited. Then, she quickly stretched part of body inside the door, grabbed the fruit and jumped back out. She knew the man wouldn't close the door on her, and she got the fruit.
Finally, she decided to go on inside. There was some fruit that was too far out of reach and her appetite got the best of her. Plus, she had a plan. As she munched a green apple, she climbed up to the ceiling to an opening covered with metal bars. Ah-ha! This was her escape route. Even though it looked like she couldn't fit through the bars, she somehow squeezed herself through them to escape.
The humans figured out Josephine's secret and blocked her escape. One thing is for sure, taking care of chimps in captivity will keep you busy. They are smart.