Solved double strings in C,Python,Java