complex iterative 3 loop inuit

opening A