adding decreasing string solution