# All elements in the {0,1,2,...k}

def solution(A, k):
    # k is max value
    counter =
    pass


assert solution([5, 4, 3, 2, 1], 5) == [1, 2, 3, 4, 5]
assert solution([10, 1, 9, 2, 8, 3, 7, 4, 6, 5], 10) == [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
