Amazon interview question

System design, OOPS, recursions, stack