Pergunta de entrevista da empresa LENS (MI)

I was asked to code an infinte scroll without the help of any library