Question d’entretien chez Safaricom

Write an algorithm to solve a simple string problem