Aptiv interview question

Some random coding and planning problems.