The hot and steamy play was inspired by relationship advice in a 2015 New York Times article.