title: Decode Median String Original String
signature: func decodeMedianStringOriginalString(s string) string {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual string, expected string) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(s string, expected string) string {
      if validateSolution(PLACEHOLDER_FN_NAME(s),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(" EgvQCeqYpZtv", "tpqCvE gQeYZv")
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver("488540", "484850")
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver("0000101010111", "1000000011111")
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver("syw", "ysw")
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver("402355", "524035")
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver("0", "0")
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver("wmHMlAtq", "tlHwmMAq")
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver("7962", "6792")
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver("111111", "111111")
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver("UbgRGDquop", "oqGgUbRDup")
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
source_py: def decode_median_string_original_string(s):
      l = len(s)
      s1 = ''
      if ((l % 2) == 0):
          isEven = True
      else:
          isEven = False
      for i in range(0, l, 2):
          if isEven:
              s1 = (s[i] + s1)
              s1 += s[(i + 1)]
          elif ((l - i) > 1):
              s1 += s[i]
              s1 = (s[(i + 1)] + s1)
          else:
              s1 += s[i]
      return s1
source_cpp: string decode_median_string_original_string(string s) {
    int l = s . length ( );
    string s1 = "";
    bool isEven = ( l % 2 == 0 ) ? true : false;
    for ( int i = 0;
    i < l;
    i += 2 ) {
      if ( isEven ) {
        s1 = s [ i ] + s1;
        s1 += s [ i + 1 ];
      }
      else {
        if ( l - i > 1 ) {
          s1 += s [ i ];
          s1 = s [ i + 1 ] + s1;
        }
        else {
          s1 += s [ i ];
        }
      }
    }
    return s1;
  }