I have Explained in the comment