Given an array, return an object with the array elements as key-value pairs.
// input: const a = ['a', 'b', 'c', 'd', 'e'] // output: {0: 'a', 1: 'b', 2: 'c', 3: 'd', 4: 'e'}
/* output */