leetle
40. Zigzag Conversion
Write a function solve that reads a string in a zigzag pattern on a given number of rows, then returns the row-by-row read string. If 'zigzag pattern' is unclear, see the relevant question.
Example:
Input: "PAYPALISHIRING", 3
Output: "PAHNAPLSIIGYIR"
Make sure you return your solution, don't print!
def solve(s, numRows):
pass