Which religion arrived in India in waves?

AIslam
BBuddhism
Cboth A and B
Dneither A nor B