BNY interview question

2 Basic string application questions