Who wrote sour candy by Carly Rae Jepsen?

Carly Rae Jepsen, and Josh Ramsay (lead singer in Marianas Trench) come together throughout the writing of "Sour Candy" and wrote the song together.