There is a function in the scope that divides 10 by the passed number.
def divide10(n: Int): Int = 10 / n
Complete the code of the protectedDivide so that both in case of an error and in case of a successful division, the function prints: "The function has ended".