Gargari get bored play bishop solve problem try math homework in math book find k permutation each consist number 12n order now find length long common subsequence permutation can help GargariYou read long common subsequence httpsenwikipediaorgwikilongest_common_subsequence_problem