Xcalar Interview Question

Some medium-difficult algorithm questions.