MetricStream Interview Question

all basic question from past work