The Software Practice interview question

1. Basic string manipulation questions from leet code