Add R solution
Merge pull request #19 from jcheng5/master

Add R solution