input_array result_dict

1
2
3
4
5
6
7
8
9
input_array = [1, 2, 4, 5, 3, 0]
result_dict = {
0: 5,
1: 0,
5: 3,
2: 1,
4: 2,
3: 4,
}