Pregunta de entrevista de Zemingo

How would you implement a pagination logic?