Write R programme to solve the problem
Solve the maximum expected returns optimization exercise in section 3 of slides 8.2 (that is, reproduce the solution presented in the lecture). The last line of your R program should display the portfolio weights vector w.