Numerator Interview Question

Stacks leetcode question, infrastructure design