Pergunta de entrevista da empresa FICO

Asked coding question related to sliding window concept