Error in the code

@tharun i have corrected all the mistakes here

Please mark the doubt as resolved.