uva; solve "Password Search" from Volume 9