Tech Mahindra Interview Question

Profit and loss,averages,1 question on coding