Quotient Interview Question

Programming, data structures, sql, logical reasoning