made problems function more abstract to handle different problems with different titles, desc, test cases, and solutions
made problems function more abstract to handle different problems with different titles, desc, test cases, and solutions