Codechef- Chef And Dolls Question Codechef Solution