There is linked list of millions of node and you do not know the length of it. Write a function which will return a random number from the list.
Google interview questions for various roles and How to Ace the Google Software Engineering Interview? Google is one of the…