Test case 2 coming out wrong. https://ide.codingblocks.com/s/53144
You just forgot to print the roots in equal’s case.