Please, explain the code.
You’d have a better chance of receiving a helpful answer if you follow the guidance provided at the following link-