Given integer N followed by a list of N different integers, print the index of the mininum number and the index of the maximum number among the given numbers.
NOTE: The first index is 0 not 1
In the first line only 1 integer N
In the second line, N integers separated by a space
5 1 2 3 4 5
Minimum index is: 0 Maximum index is: 4
The minimum number is 1 and its index is 0
The maximum number is 5 and its index is 4
4 6 2 3 7
Minimum index is: 1 Maximum index is: 3
The minimum number is 2 and its index is 1
The maximum number is 7 and its index is 3
6 6 5 4 3 2 1
Minimum index is: 5 Maximum index is: 0
Test your solution here
when it passes, copy it and submit it here so your coach can grade it.