Atidan Interview Question

Basic coding and how to improve its efficiency