PhoneList - Phone list task from kattis (solved)