Unique Matrix Traversal and Perfect Square Detection in C++ | CodeSignal Learn