You want to invite as many friends to your party as possible. You're given list of tuples where each tuple consists of two friend ids and they don't like each other. Your task is to invite as many friends as possible. Output of the task - max number of friends you can invite which don't have conflicts with each other.
Input: [(1, 2), (2, 3), (3, 4)]
Ouput: 2 (it's either (1, 3) or (2, 4) or (1, 4)