Science P6 NYPS 2018 Q25

An iron block is attached to an elastic spring with two button magnets. It is then placed on the top end of a wooden plank as shown in the diagram below. The iron block remained stationary at the top of the wooden plank.Which force could have stopped the iron block from sliding down the wooden plank?