I have written the code but in output