all algo problems and solution