Okta Interview Question

Asked to find the biggest k numbers