Find triplet such that number of nodes connecting these triplets is maximum
Given a Tree with N nodes, the task is to find a triplet of nodes (a, b, c) such that the number of nodes covered in the path connecting these nodes is maximum. (Count a node only once).Examples: Input: N = 4 Edge Set: 1 2 1 3 1 4 Output: (2, 3, 4) (2, 3, 4) as path between (2, 3) covers nodes 2, 1,