Voyatek Interview Question

Take home assignment and my approach