A No one is liable on the principle of remoteness of damages
B ‘A’ is liable because his act is most proximate cause of damage even though his act was farthest.
C ‘X’ is liable because he threw the squib without any danger to him
D ‘Y’ is liable because he caused the injury.