Glassdoor Interview Question

design a calculator for data stream