Implement Layer History and Grid Counting | Figma Interview Question