Johnson & Johnson Interview Question

2 LC easy questions, as well as debugging question in C++.