Pregunta de entrevista de Netflix

DataStructure, String manipulation types of coding question.