Amazon Interview Question

Pascal triangle and a few more questions