Wayve Interview Question

basic syadmin scripting problems, one LC easy