Apex Interview Exercise