Chainable Add

A chainable add function that accumulates numbers across method calls and returns the total when sum() is invoked.

Asked in Intuit frontend interviews