Hi Nandhini!This is Neeraj Atluri.Simple way to answer these type of questions are:
Consider 3 numbers A,B,C(A<B<C) such that leave same reminer when divided by a number .Find the number n=
H.C.F{(A-B),(A-C),(B-C)}
So by applying this formula we will get the answer =4;