AbbVie interview question

how to formulate the correlation between the binary variable and time-to-event variable?