Solution for r-prog programming assignment 2

Solution for r-prog programming assignment 2