Answer:
Now we will try as much as we can to call it as few time as we can, so the;
bool testInOrder()
{
if
(
(inOrder(1,1,1)==true) &&
(inOrder(1,2,3)==true) &&
(inOrder(1,2,2)==true) &&
(inOrder(1,2,1)==false) &&
(inOrder(2,2,1)==false) &&
(inOrder(2,2,3)==true) &&
(inOrder(3,2,2)==false) &&
(inOrder(3,2,1)==false) &&
(inOrder(3,2,3)==false)
return true;
else
return false;
}