Chess board problem hackerrank. .