Pregunta de entrevista de Thriver

A few graph and set/array algorithm questions