OpenText Interview Question

2 coding questions on string manipulations.