Dam Digital Interview Question

Fix10 bugs