I know proposed is not a valid way to do things, however, in terms of speed, which will return quicker give a random list that we need to return Nth element: