BlackRock interview question

Puzzles on array and dice