The ? 1 ? 2 ? ... ? n = k problem | judge.