Pascals Triangle Leetcode Solution In Java