Beyond, Inc. interview question

finding the second highest salary