Slync Interview Question

Basic coding exercise in any language