findTheRemainder solution