Nth SHORTEST SUPER SEQUENCE

OK, I edit my old answer. Hope, that help.