Analog Devices Interview Question

Questions were based on FIFO depth calculation, basic C++ algorithms (Kadane's), and circuit design problems . One of the problems they gave me was: there are 2 random number generators, one generates integers from 4 to 10 and other generated integers from 6 to 12. Design a circuit that outputs 1 if one number is a multiple of the other.