GlobalLogic interview question

Questions regarding DSA including strings and arrays