Noon Academy interview question

Leetcode algorithm challenge - string manipulation and processing