I got stuck in this question while an interview , can anyone help me out?
print all combinations of string where SPACE is replaced by "_"
1 .str s="a b c" ( example) sol- a_b_c a b_c a_b c
2 string s="a b" sol - a_b