Adding solution for Favorite Dice (SPOJ).