Software major Tata Consultancy Services Ltd (TCS) closed the second quarter of FY23 with growth in its net profit and revenue.