algorithm confusing
 
Leggings