I guess everything is working fine. I am not able to find any missing corner case . could you please help?
Test case 4 shows no output
hey @vijit.chandhok99, you have not considered the case when no intersection is there,you have to print -1 then.
I have made changes to your code you can check them here https://ide.codingblocks.com/s/99156