ASAPP Interview Question

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