# Chef and Numbers Problem-Runtime Error

hi , i am write solution of this problem in python which is work with out err in my system but i am submit the solution it gives me runtime error but it’s not display whats error how can i figerout the problem
my code

def getDishArr():

``````t = int(input())

disharr = []

for i in range(t):

N = int(input())

b = input().split(' ')

disharr.append( max_pickUp([[int(x) for x in b]]) )

return disharr
``````

def max_pickUp(d):

``````i = 0

final_result = []

def find_posible_pickup(elemnt=None,arr=None,pos=0,lastpos=None):

postion = arr.index(elemnt,pos)

if lastpos == None:

lastpos = postion

try:

if postion != lastpos + 1:

allPos.append(postion)

find_posible_pickup(elemnt,arr,postion + 1,lastpos)

except Exception:

lastpos = None

while i < len(d):

dish_rows = d[i]

type_of_dish = []

key = []

val = []

if len(dish_rows) > 1:

for x in dish_rows:

if x not in type_of_dish:

type_of_dish.append(x)

for j in type_of_dish:

allPos = []

find_posible_pickup(j,dish_rows)

#final_result.append([j,len(allPos)])

key.append(j)

val.append(len(allPos))

i+=1

final_result.append( key[ val.index( max( val ) ) ] )

return final_result
``````

print(getDishArr())