solve ladderize