5.js

Given a string expression examine the correctness of pairs and orders of parantheses using Stack.
If it has pair of parentheses print yes else print no.

12.js

Given an array of n elements and q queries, for each query which has an index i, 
find the next greater element and print its value using Stack. 
If there is no such greater element to its right then print -1.