Update ladderLength.cpp