Algorithm of JS Pure JS code which I made by myself in free time There should be 5 test project codes for self reference, they come from my FCC test.