Amazon interview question

How would you calculate correlation between a binary variable and a continuous variable?