#program for finding second max and second min


# default_max = default_min = arr[0]
# for i in range(1,len(arr)):
#     if default_max < arr[i]:
#         default_max = arr[i]
#     elif default_min>arr[i]:
#         default_min = arr[i]

# arr = list(set(arr))
# arr.remove(default_max)
# print("this is second max",max(arr))
# arr.remove(default_min)
# print("this is second min",min(arr))