Verisk interview question

Top n in SQL quesiton