return 1;
}
if (y.getX() < x.getX() || y.getY() < x.getY()) {
return 0;
}
Point yXMinus1 = new Point(y.getX() - 1, y.getY());
Point yYMinus1 = new Point(y.getX(), y.getY() - 1);
int sum1, sum2;
if (pointPathCount.containsKey(new Pair<>(x, yXMinus1))) {
sum1 = pointPathCount.get(new Pair<>(x, yXMinus1));
} else {
sum1 = numPaths(x, yXMinus1);