Switched the output order

The code now returns the lower bound first and the upper bound second