Amazon interview question

Pascal triangle and a few more questions