Millennium interview question

A basic question to calculate the correlation cofficient