What is Reserves and Surplus in accounting terms?

How it is used and why?

Please explain me with an example