26.arrayToObject

Write a function named arrayToObject that receives an array of strings as parameter and returns an object where each key is an item of the array and its value is the index of that item.

If there are duplicate strings in the array, the value inside the object should be the index of it's first occurrence.

Example 1

Input

strings

=

Output

Example 2

Input

strings

=

Output