Why Silicon Valley’s biggest companies are investing billions in India