GlobalLogic interview question

normal stuff of a technical interview