If sign is ' * ' , then multiply last element of deque with arr [ i ]
if ( v [ j ] == " * " ) : NEW_LINE INDENT x = d [ len ( d ) - 1 ] NEW_LINE d . pop ( ) NEW_LINE x = x * A [ j + 1 ] NEW_LINE DEDENT