Hexagon interview question

he asked to write algorithm for sudoko