MetGlobal Interview Question

basic algorithm questions.