The correct option is B Frictional force
If the work done by a force depends not only on initial and final positions, but also on the path between them, the force is called a non-conservative force.
The gravitational force and spring force are examples of conservative forces, while friction and air drag are classical examples of non-conservative forces.