Hamlet interacts with Osric in act 5, scene 2. What function does this interaction have in the play? It resolves a problem. It provides comic relief. It heightens the tragedy. It is an example of dramatic irony.