H-Index: given an array of citation counts, compute the researcher's h-index.
Asked in the Onsite coding stage.
Implement h_index(citations), where citations is a non-empty list of non-negative integers. Return the largest integer h such that at least h papers have at least h citations each.
def h_index(citations):