BlackRock Interview Question

Derive the linear regression formula for slope