Complete the implementation of the following function: bool…

Complete the implementation of the following function: bool search(int value): returns true if value is found in a singly linked list; otherwise it returns false Node* head; Node* ptr; struct Node { int info; Node* link; }; bool search(int value) {       ptr  =  head; while (ptr != NULL)      { // write your code here                }      return false; }