Pregunta de entrevista de Amazon Web Services

Longest Path With Different Adjacent Characters