Turing interview question

Two Leetcode Questions (straight from Leetcode). One easy medium. No proctoring. 30 mins Multiple choice tests on different tech stacks, Typescript, React, Python, etc.