Aptiv Interview Question

Some random coding and planning problems.