Simple Algorithm For Problem Solving