Beacon Hill Interview Question

Some basic coding questions, which are related to the contractor position.