Preferred Hat Assignments with Pair Dependencies - PhonePe OA Question | OAHelper