my acm solution