rakesh code does'nt work. At all.
I think it works only with the only one example he tried it...
(10,100) => works (by chance!!!)
(100,10) => null, doestn't work (because he didn't do the other case)
(10, 4) => 10, doesn't work (because the test is wrong anyway.