Jane Street Interview Question

Implement a spreadsheet class. Each cell can either be a value, or a sum of two different cells.