Tata Consultancy Profit Beats Estimates Amid Push Into Cloud