2014-6: Roll The Dice

Write code that takes an integer array representing the sides of a number of dice and returns a 2 column matrix of the number of ways each possible total of the dice can be rolled.

Examples

Implementation

You can also run the tests via ⌘/shift + enter