Gemini Interview Question

LC medium, nothing difficult that cannot be solved in 45 minutes