Safaricom interview question

Write an algorithm to solve a simple string problem