My Algorithm Code