Motive Interview Question

Some dumb algorithmic problems. Easier than expected