Added solution for Broken Necklace