OneIT Pty Ltd interview question

coding questions related to string manipulation