Step 1
Given that A and B are similar n x n matrices.
Then there exist a non-singular n x n matrix P such that
Step 2
Now
Answer is given below (on video)
Let L be an SList. Define a recursive function Wham as follows. B. Suppose L = x. Then Wham