You need to at least show some attempt to solve the problem.
That way, we can really help with the problem you're really having.
Or we just assume you're just lazy and ignore you.
This isn't a site where you can just dump a picture of your assignment and get a complete answer with zero effort on your part.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.