GlobalLogic Interview Question

Create a data structure named 'MapSum' with the ability to perform two operations and a constructor.