Well, in the short run, maybe Joseph was frustrated, sexually. That might very well be a quite natural response to the pass this very pretty lady made at him. And Potiphar's wife, out of pure spite because she was mad at Joseph for rejecting her, spoke false witness against him and had him thrown in jail, too. But God helped him with both troubles. The Bible tells us that God was kind to Joseph, and gave him success in whatever he did.
Sex is one of the toughest things to handle in life.
Teenagers have an especially difficult time. Social pressures are worse than ever, on top of the chaos of your growing and changing bodies. But God understands you and how difficult this part of your life can be. And He has a way to help you. You can learn from Joseph.