Goldman Sachs Interview Question

they asked me about recursion,graphs..