Pergunta de entrevista da empresa Microsoft

Question one was a sliding window