Compute answers to probability and counting puzzles | Sig Interview Question