migrate code from leet code of done questions