Pregunta de entrevista de Texas Instruments

Write code for a running sum.