Answer: Sherry
Explanation: An indirect object is a noun phrase that's affected by the verb but isn't the primary object.
Let me put it this way, though: if whatever's after the verb doesn't make sense as a direct object (the object right after an action verb), it's an indirect object.
For example, in the sentence provided, "Sherry" can't be a direct object because Mr. Jones can't give Sherry. He's giving an apple, not Sherry; therefore, "Sherry" is the indirect object.
If the sentence did have a direct object, though, one could rewrite the sentence to "Mr. Jones gave an apple to Sherry because she was hungry." Because "an apple" follows after the action verb gave, it's a direct object.
Hope this helps! <33