Accenture interview question

trees and graphs dynamic programing