Finding Nemo
Given an array, return both the smallest and largest index numbers of the string element 'Nemo'.
Sample Code:
function twoIndex(arr) {
// Enter your logic here...
}
Examples:
Input: ['Java','Nemo','C','Python','Nemo']
Output: '1,4'
Explanation: The first and last 'Nemo' elements can be found at index 1 and 4 respectively.
Input: [1,2,1,3]
Output: '-1,-1'
Explanation: -1 is returned because the 'Nemo' element was not found in the array.