• + 0 comments

    There is an error in the problem description.

    If either or is negative, then the method must throw an exception which says "n or p should not be negative".

    The period should be inside the double-quotes.