Whatfix Interview Question

Java coding - top n numbers in input lust