There is no investment or trade that has 0% risk. It is guaranteed that some individual shares that you buy will fall in price.

If minimising risk is the only priority, then buy shares that pay dividends but never sell them. So you get the dividend income during your life and can then pass the shares to your children in your Will.

But this throws away the opportunity to gain from a share price rise. So if you can't keep a share for life, buy shares that are in an uptrend when the whole market is in an uptrend and sell them when either trend stalls. If the whole market's uptrend stalls don't buy or hold any shares until it starts upwards again.

Is there any sure shot strategy to ensure the profit and avoid loss? Please help.

More...

If there was such a thing that is 100% guaranteed to make you a profit, wouldn't everyone be doing it?

The only way to make money without risking losing money is doing a regular job.
With everything that requires a capital injection of any kind (trading, investing, property development, any other business really), there is a risk to lose the money that you have invested.