Insider One interview question

Some questions like LeetCode problems.