Zoho interview question

Zig Zag Sorting Longest Substring Reverse the String