Hi @sengkrisna,
Please see the forum post that has been discussed earlier. It should answer your concern on how to determine the loops/repeat groups:
For more support on repeat group please see the support article here.
Regarding your second concern, could you explain a bit as it seems a bit unclear.