Google interview question

One was about number combinations while other was a graph problem.