MetricStream interview question

all basic question from past work