Game of Life

Given a board of 0s and 1s, return the next state according to Conway's Game of Life rules.

Examples
Input: [[0,1,0],[0,0,1],[1,1,1],[0,0,0]]
Output: [[0,0,0],[1,0,1],[0,1,1],[0,1,0]]
Hints

Game of Life

Given a board of 0s and 1s, return the next state according to Conway's Game of Life rules.