Pergunta de entrevista da empresa Lutron Electronics

2. Same question using recursive method starting the number from 1.