Write a program to find the index of a given element in an array.
EasyProblem Statement
Write a program to find the index of a given element in an array.
Sample Input
array = [10, 20, 30, 40, 50], element = 30
Sample Output
2
Limits
Time: 2s · Memory: 256 MB