Beyond, Inc. Interview Question

finding the second highest salary