Pergunta de entrevista da empresa Intuit

Two related and not very hard graph questions.