Longest common subsequence (hackerblocks) three strings


why i m getting tle for few test cases such as
SggGptpOyQetZ6apUH7c ayvBIeGmXDJvJprqIH avSGzLYJQtqkKnnz