Implement a spreadsheet (coding).
Asked in the virtual onsite stage. Write a function that processes spreadsheet operations and returns the values produced by each get_cell query.
operations is a list of operations. Each operation is one of:
['set_cell', cell, value], set cell to an integer value['set_formula', cell, refs], set cell to the sum of the referenced cells in refs['get_cell', cell], return the current value of cellA formula cell should update automatically when any referenced cell changes. Cells not yet assigned have value 0. Return a list of integers for all get_cell operations, in order.
def spreadsheet(operations):