im building a recursive function which takes a hashmap which contains numbers and a two letters a and b, will include some examples to make it more clear:
0: