OpenText interview question

2 coding questions on string manipulations.