Procedural Languages – String Manipulation tasks

Task 1:

 Task 2: