2
def reformat(self, s: str) -> str:3
# Store the alphabets and the numerics from the string in a seperat arrays6
# Initiate a res variable to store the resultant string15
# It's not possible to create a permutation if the absolute difference b/w len(alpha) and len(num) > 1.16
if abs(len(alpha) - len(num)) > 1:19
# Use Zip to create list of tuples.20
# For ex:- if alpha = ['a','b'] and num = ['1', '2'] then,21
# zip(alpha, num) = [('a', '1'), ('b', '2')]22
for ch, n in zip(alpha, num):25
if len(alpha) > len(num):27
if len(num) > len(alpha):