Consider the following object:
const obj = {
A:{
a1:'vala1',
a2:'vala2'
},
B:{
b1: 'valb1',
b2: 'valb2'
},
C:{
c1:{
c11:'valc11'
},
c2:'valc2'
}
}
We also have an array: const ar = ['C','c1','c11'];
How would you retrieve the value by concatenating the keys from the array? (i.e., obj.C.c1.c11)