Microsoft Coding Interview Question | Leetcode 289 | Game of Life