Problem by running the below code and shows error

Please read the question again. You will be able to identify your mistake