I explained it above. One leetcode easy and one leetcode tree medium (variant of left nodes of binary tree) something along those lines. Hint: use bfs
Sigiloso
used bfs for the second question and for the first question its literally scanning through an array and using the helper function given to you. Use a simple for loop