Nium Interview Question

Reverse Cyclic sort (Hard Question)