adding solution for stock exchange losses
stock exchange go solution improved