DSV leven Interview Question

code assignment and discussing it