Google interview question

There was a question regarding a python based matrix