problem: (A) Anastasia and pebbles Solution in C Archive