The two halves

The two halves. Given a string, divide it into two “equal” parts. If the length of the string is odd, the first part should contain one more character than the second part. Print a new string with the second part first and the first part second, all on a single line. Do not use the if statement in this task.

Test Case Input (String) Expected Output
1 abcdef defabc
2 abcde deabc
3 hello lohel