Here
1234 = 1*2*3*4/1+2+3+4 = 24/10 = 12/5
after dividing 12 by 5 we get 2 as divisor and 2 as reminder
2/2 = 1
4567 = 4*5*6*7/4+5+6+7 = 840 /22 = 420/11
after dividing 420 by 11 we get 38 as divisor and and 2 as reminder
38/2 = 19
on applying same rule
6789
=6*7*8*9/6+7+8+9 = 3024/30 = 1512/15 = 504/5
after dividing 504 with 5 we get 100 as divisor and 4 as reminder
100/4 = 25