Largest cut

Sign in to test your solution.
largest(X,Y,Y):- X =< Y, !. largest(X,_,X). % keep this line