Help me by debugging this algorithm

hihujknlkjoilkm;l'kljhb