Return if ints are the same, return if their remainders are the same, return using Math.max to find out which is larger.