Software giant Tata Consultancy Services Ltd., once the poster child of India’s technology prowess, has been hit hard by the sector’s mounting challenges