Question d’entretien chez Texas Instruments

Write code for a running sum.