Pregunta de entrevista de ASAPP

Coding round 2 Question from hackerank 1) related to climbing stairs