Pregunta de entrevista de eBay

Sum problem, matrix problems and graph problems