Pergunta de entrevista da empresa Ericsson

A coding question about sliding window,