After the success of her hit single "Problem," Ariana Grande is currently gearing up for the upcoming release of her sophomore album "My Everything," which is set to feature a track written by One Direction heartthrob Harry Styles.

On Wednesday, July 2, the 21-year-old singer brought back the classic MTV show "TRL" just for one day with special "Total Ariana Live," where she revealed how she ended up working with Styles on "A Little Bit of Your Heart."

"I was at the studio one day, and he was there, and literally, Johan [Carlsson] and Savan [Kotecha] were like, 'Hey, do you want to write something for Ariana?'" Grande said in an interview. "And he was like, 'Sure, mate.' And he just did."

The former Nickelodeon actress also praised the 20-year-old Brit's writing talent. "It's a beautiful song. He's an amazing writer," she said. "It's really beautiful. He's amazingly talented."

The pair's romantic song was confirmed by The American Society of Composers, Authors and Publishers (ASCAP), a nonprofit performance-rights organization that protects its members' musical copyrights by monitoring public performances of their music and compensating them accordingly. The "Midnight Memories" hitmaker is listed as co-author along with songwriter Carlsson.

According to Heat, Harry Styles is quite experienced at penning music, as he already wrote a number of songs, such as "Might Not Want You," "Kissed You in the Rain" and "I Fell in Love With a Beautiful Girl" -- which have been assigned to other artists yet.

Ariana Grande's forthcoming 12-track album "My Everything" includes collaboration from various guest artists, including Zedd, Big Sean, Cashmere Cat, Childish Gambino, The Weekend and A$AP Ferg. It is scheduled for release on Aug. 25.

Check out the official tracklist of "My Everything" below:

1. "Intro"

2. "Problem" (feat. Iggy Azalea)

3. "One Last Time"

4. "Why Try"

5. "Break Free (feat. Zedd)

6. "Best Mistake" (feat. Big Sean)

7. "Be My Baby" (feat. Cashmere Cat)

8. "Break Your Heart Right Back" (feat. Childish Gambino)

9. "Love Me Harder" (Ariana Grande & The Weekend)

10. "A Little Bit of Your Heart"

11. "Hands on Me" (feat. A$AP Ferg)

12. "My Everything"