Iterate over the given queries array and And answer the queries
for i in range ( N ) : NEW_LINE INDENT if queries [ i ] in mp : NEW_LINE print ( mp [ queries [ i ] ] , end = " ▁ " ) NEW_LINE else : NEW_LINE print ( 0 , end = " ▁ " ) NEW_LINE DEDENT