I had an interview with meta last week. I could solve the first question easily in each interview. Found the second
█████████████████████████████████
████████████████████████████████████████████████████
████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████████
██████████████████