Robots and Pencils interview question

Personal questions and code challenge