#include <vector> class Robot { public: int countWays(int x, int y) { // write code here if(x==1 || y==1 ) return 1; if(x==2 && y == 2) return 2; return countWays(x-1, y) + countWays(x, y-1); } };