A small silly mistake...
The solution image is false. The image shows the table before output whereas the answer says the image is for the result after the output.
Just a minor error you can check. Happy to help, just have a look.
1
vote
Ananya Pandey
shared this idea