Publicis Sapient Interview Question

Question based on string in programming.