Traverse through the board

Problem Name:
Traverse through the board
Site:Spoj
Links:
Tags:
Problem setters: