Pregunta de entrevista de Amazon

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