[libc++][ranges] Implement `ranges::is_permutation`

Co-authored-by: Konstantin Varlamov <varconst@apple.com>

Differential Revision: https://reviews.llvm.org/D127194

GitOrigin-RevId: 4038c859e58c12e997041927a87e880f2f3ef883
18 files changed