def largestNumber(n):
    return int("9"*n)

print(largestNumber(4))


'''
Given an integer n, return the largest number that contains exactly n digits.

Example

For n = 2, the output should be
largestNumber(n) = 99.'''