Question d’entretien chez Salesforce

solve an an online algorithm problem in hackerrank