[Community Puzzle] Faro shuffle

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @qpi,validated by @Bmol,@Phykin and @FredericLocquet.
If you have any issues, feel free to ping them.

Could the author please update the last test case which is the same as the last validator? Thanks. (Edit: The author has done so.)

And approvers: please be reminded to check for the above issue when reviewing puzzles in the future. Thanks.