BrightChamps interview question

Pagination and indexing in sql