Pregunta de entrevista de Samsung Electronics

Tested graphs and algorithms background