The scenario that shows an object gaining potential energy and losing kinetic energy is:
roller-coaster car slowing as it moves up a hill
In this scenario, as the roller-coaster car moves up the hill, it slows down (losing kinetic energy) while gaining height, which increases its potential energy.