help needed for dry running the code :
public static ArrayList getBoardPath(int curr, int end){
if(curr == end) {
ArrayList<String> br = new ArrayList<>();
br.add(" ");
return br;
}
if(curr > end) {
ArrayList<String> br = new ArrayList<>();
return br;
}
ArrayList<String> mr = new ArrayList<>();
for(int dice=1; dice<=6 ; dice++) {
ArrayList<String> rr = getBoardPath(curr + dice , end);
for(String rrs:rr) {
mr.add(dice + rrs);
}
}
return mr;
}