Mubashir was playing with dominos. He concluded that:

Create a function which takes a string of current status of the dominos and returns the string after dominos chain reaction.
domino_chain("||| ||||//| |/") ➞ "/// ||||//| |/"
// A space will stop the reaction.
domino_chain("||//||") ➞ "////||"
// An already tripped domino will stop the reaction.
domino_chain("||||") ➞ "////"
N/A