Google interview question

Matrix manipulation , hash mapping