Find the number of sticks that forms cycle
Given N sticks with two sides Left and Right (represented by 0 and 1). Given 2d array, A[][4] of size M representing operations that have to be performed on these sticks in each operation {A, B, C, D} connect side B (Left or Right) of A'th stick with side D (Left or Right) of C'th stick. The task fo