Odd elements
Given a string, return the letters with an odd-positioned value.
Sample Code:
function oddEle(str) {
// Enter your logic here...
}
Examples:
Input: 'Codetisan'
Output: 'Cdtsn'
Explanation: The position of the output values are 1,3,5,7,9.
Input: 'Javascript'
Output: 'Jvsrp'
Explanation: The position of the output values are 1,3,5,7,9.