Programming_Assignment_2: Adding .R file with the solution