Question d’entretien chez Coupa Software Inc

Ruby problem based on the scenario