Infosys layoffs controversy raised questions about the treatment of trainees in India’s IT sector.