Sponsored
Use these hints if you're stuck. Try solving on your own first.
What should the sum of the n rolls be?
Could you generate an array of size n such that each element is between 1 and 6?
Solve with full IDE support and test cases