When someone is praying and someone else enters the home; greet with Asslam alaykum, does the person praying has to stop and answer it?

Yes, with same words.
If he said Salam Alaykum, the answer should be Salam Alaykum.