Solve Part Elf (for the small input only)