uberall interview question

Please code us a "Knight's Game".