Function to sort the stack using another stack based on the values of elements modulo k
def sortStack ( input1 , k ) : NEW_LINE INDENT tmpStack = [ ] NEW_LINE while ( len ( input1 ) != 0 ) : NEW_LINE DEDENT