Pregunta de entrevista de Amazon

Build a string based on a random adjacent list