Dunzo interview question

https://www.geeksforgeeks.org/puzzle-21-3-ants-and-triangle/ Famous Ants and triable problem on gfg