When Google killed its business, a startup hit the jackpot and became one of India’s profitable unicorns