Vintedge Interview Question

program structure and simple logic