how to gain profit from share market