Not getting the code send it to me properly

can you send me proper code of this question because i am not getting the solution

Hello Subham
Please find the below code for your problem and let me know if you still face any issue