R Solution
Compilations