Question: who wrote it's gonna be me
Answer: Rami, Andreas Carlsson, Max Martin