Framework for solving Leetcode problems