add foldleft solution