Leetcode Multiple Solutions Of A Matrix To The Power