 Once Grande began working on "Problem" she thought Azalea would be the perfect fit for the track to create "the perfect girl-power duo" for the song.Azalea agreed to appear on the song and went in with producer Max Martin to write her own verse before recording it for the song.The line "one less problem without you" was inspired by an article from "Cosmopolitan".