R Solution. R