my algorithm design coding