You're looking for the Age Potion (not a "banana"). In LEGO Harry Potter: Years 1‑4, Year 4, Level 4 ("The First Task"), the Age Potion is obtained as follows:
Tip: If you lack a Dark Wizard, replay the level in Free Play after unlocking one. The potion lets you age the character to cross the age‑line barrier in the story.