Question d’entretien chez Meta

LC M Questions but cant use window function to solve.