fixed bug for valid paranthesis generation and added 2 more problems