Edit the R file and place solution

Edit the R file contained in the git repository and place solution in that file