One of the most asked interview question these days : An API returns 1 M records , how would you design pagination ?