my algorithm practice.