Exercise for global-logic-interview