Many programming languages implement scope for variables – and they are context sensitive. For example a global scope variable will be over-ridden using local variable definition. Implement a simple interpreter which tells us current value of a variable, if its not defined then value should be zero, Input will start with ‘[‘ and will end with matching ‘]’