A stock market is a marketplace where people can sell or buy shares of a…