I have solve my question and getting the correct answer But still it showing an error while i submitting my code.