ADP interview question

general basic cs coding problems