Google interview question

Coding questions on Grid patterns, and graph patterns.