The correct answer is: Both balls have equal potential energy.
Potential energy depends on the height above a reference point (usually ground level) and the mass of the object, not on the path taken to reach that height. Since both balls were brought to the same height at the top of the hill and are at rest, they will have the same potential energy, assuming they have the same mass.