IndiaMART Interview Question

database question on limit function