Import Java.utils.arrays;
Import Java.utils.arrays;
Arrays;
class Solution:
# your task is to complete this function
# function sort the s such that top element is max
# funciton should return nothing
# s is a stack
def Sorted(self, s):
# Code here
if len(s) <= 1:
return
top = s.pop()
self.Sorted(s)
self.insert_in_sorted_s(s,top)
top = s.pop()
self.insert_in_sorted_s(s,element )
s.append(top)