Dematic Interview Question

Technical interview consisted of two array problems.