R programming - Assignment 2

Developed the functions as required for the assignment