It was good. They want optimal solution, so even if you give brute force, try to think of another solution that is more efficient and optimal. Facebook is notorious for being difficult with their questions, so make sure to prep well.
Finding inversions of an array.
The following metrics were computed from 1 interview experience for the Meta Software Engineer role in Remote, Oregon.
Meta's interview process for their Software Engineer roles in Remote, Oregon is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Meta's Software Engineer interview process in Remote, Oregon.