Table Rollback Problem
Create a class that populates a table represented in the following way. You can think of this as a nested hash/map/dictionary structure. { "row1": { "col1":"foo", "col2":"bar" }, "row2": { "col1":"baz" } } The class should support the following methods: createRow(rowName): Creates a new empty row of the givenname. Do nothing if a row with that name already exists deleteRow(rowName): Deletes a row with the given name. Donothing if a row with that name doesn’t exist updateCell(rowName, columnName, newVal): Sets the value ofthe cell at the given row/column coordinate to the new value. If the row doesnot exist, do nothing. These actions are grouped together in transactions. Theactions above can only be performed as part of a transaction. The class should also support the following methods: ...