Texas Instruments interview question

Write code for a running sum.