Two Linked Lists are identical when they have the same data and the arrangement of data is also the same. For example, Linked lists a (1->2->3) and b(1->2->3) are identical. . Write a function to check if the given two linked lists are identical.
To identify if two lists are identical, we need to traverse both lists simultaneously, and while traversing we need to compare data.
Identical Linked Lists: https://www.geeksforgeeks.org/identical-linked-lists/