Cross String Pattern - Java ( Zoho Interview Question - 1 )

This question was asked in Zoho corporation in 2nd round. Problem: Given a string of odd length convert it into cross character or cross string (i.e Diagonal from left-right and from right-left) Example: Input: LOVE2CODE Output: L E O D V O E C 2 E C V O O D L E