BAE Systems Interview Question

Solve a programming problem similar to LeetCode