Randstad Interview Question

Leetcode array medium-level question, js, MySQL query, and one puzzle-based question.