Text: Algorithm done