Function to find the correlation between two variables

Week 2 Assignment part 2