Question d’entretien chez SAP

Some technical questions related to Python and working with files. Pretty easy coding problem (you have an array and need to create a dictionary: key - element, value - count this element in array)