Complete R assignment 1

Completed the assignment 1 (Week 2) of R-programming