Question d’entretien chez Cognizant

Write two programs. Some profit Loss question