Investing in the stock market has turn out to be an increasingly popular way to build wealth over time. However…