Vendasta interview question

Basic questions on string manipulation