Add Solution of problem Double String in java and python