Lena has created a Go program that calculates the square root of any positive (decimal) number using the math.Sqrt function. However, one of her friends tried to calculate the square root of a negative number and got NaN (not-a-number) answer.
To fix this issue, Lena wants to use the errors.New() function and create a custom error message within the negativeNumError function that shows up when users try to calculate the square root of a negative number.
The contents of the error message should be the following string: "math: can't calculate square root of negative number".
Please help Lena create the custom error message; below is the code she has written so far: