Hexagon Interview Question

he asked to write algorithm for sudoko