Make Counter

Implement a makeCounter factory function that uses closures to maintain private state.

The returned object must expose four methods:

MethodBehavior
increment()Adds 1 to count, returns new value
decrement()Subtracts 1 from count, returns new value
reset()Restores count to initialValue, returns it
getCount()Returns current count without mutating

The internal count variable must not be directly accessible — only the returned methods may read or change it.

Examples
Input: 0
Output: 0
Hints

Make Counter

Implement makeCounter using closures — a factory that returns a private counter object with increment, decrement, reset, and getCount methods.