Anaplan Interview Question

Populate data in n*n grid.