
#check if array is sorted

# arr = [1,2,3,4,5,5,5,2]
# counter = 0
# first_element = arr[0]

# for i in range(1,len(arr)):
#     if first_element<=arr[i]:
#         first_element = arr[i]
#         counter+=1
# if counter == len(arr)-1:
#     print("sorted")
# else:
#     print("not sorted")