MongoDB interview question

Implement Conways Game of Life