Chinese technology firms that once saw India’s vast young population as a second engine of expansion discovered that…