Swiss Re interview question

How is R squared calculate

Swiss Re Interview Question: How is R squared calculate | Glassdoor