In a recent interview one peculiar question has been asked
a[]= { 1,2,3,4,5,6,7,8,9,10}
When an array is given with specified starting index i have to iterate it till i traverse all elements.
I mean suppose the starting index is "5" i have to start from 6,7,8,9,10,5,4,3,2,1
.Please carefully look at the sequence ,how can one create Reset(),
Current,blah,blah...?.
But the interviewer executed the sequence as he asked.He did not show the code.
Can we really develop a logic for such a strange requirement?