Pregunta de entrevista de JPMorganChase

Simple easy recursive leetcode question and array question