the string paypalishiring write zigzag pattern give number row like want display pattern fix font well legibilityP a h NA P L S I I gy I RAnd read line line PAHNAPLSIIGYIRWrite code string conversion give number rowsstre convertstre s int numrow Example 1input s paypalishiring numrow 3output pahnaplsiigyirexample 2input s paypalishiring numrow 4output pinalsigyahrpiexplanationp I NA L S I gy a h rp IExample 3input s a numrow 1output a Constraints1 slength 1000 consist english letter lowercase uppercase 1 numrow 1000