add ladderLength.cpp