Merilytics Interview Question

Basic programming logic and sql queries