Electronic Arts Interview Question

basic algorithm questions