Pergunta de entrevista da empresa MiPih

They started with a basic question on prime numbers, followed by finding the Kth largest element in an array. After that, they asked me to solve a SQL query involving filtering and aggregation