A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).