An Alternating Optimization Method for Bilevel Problems under the Polyak-Łojasiewicz Condition