Solved via sorting
Starting solution for encryption matrix
Solved using cases for min sizes and looping