Solving algo problems