Zemingo interview question

How would you implement a pagination logic?