Persistent Systems Interview Question

Pascal triangle logic and it's implementation