Oracle interview question

Algorithm to solve a mathematical problem of pagination