Goldman Sachs interview question

Longest increasing subsequence, Basic DFS, BFS problems