bizAmica interview question

Q. DSA question on Array and String.