Pregunta de entrevista de Palantir Technologies

Run time and Space time complexity of code snippets and two coding questions based on Graph