How to solve CHESAK from fall of code 1.0

Can anyone share their approach on CHESAK problem from Fall of code 1.0 link.