Given a string of odd length, print it in an 'X' pattern. The first and last characters appear on the first row, the second and second-to-last on the second row, and so on, until they meet in the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.