Pregunta de entrevista de J.P. Morgan

some integral questions and coding test in python