 It runs for a duration of three minutes and 14 seconds.The song was written by Grande, Azalea, Savan Kotecha, Ilya Salmanzadeh and Max Martin, and produced by the latter two along with Shellback.According to the sheet music published by Alfred Publishing Co., Inc. on Musicnotes.com, "Problem" is composed in the key of G minor and set in common time at a moderate tempo of 103 beats per minute.