Submitting the solution of the Programming Assignment 2 for R Programming Course.