A problem that needs to be solved and it’s solution.
Notice how the word soliloquy is a bit like the word 'solo'. This is basically what it is: a solo in drama, where somebody is projecting their inner thoughts. This gives the audience direct access to the character's feelings.