1017. Staircases.cpp