Here's how Ipca Laboratories turned the tide and emerged as investor favourite