uva; solve "Lumberjack Sequencing" from Volume 119