My answers to the exercises in Algorithms & Data Structures with JS

Result:

Result: