Planitar Inc. interview question

Leetcode easy/mediums with JavaScript and logic puzzles.