Verisk Interview Question

Top n in SQL quesiton