Simple algorithm problems for practice and interviews