Publicis Sapient interview question

Question based on string in programming.