Zensar Technologies interview question

DSA question on String and Questions on Oops