faster solution for 1.A