Editorial of old contest

i find this interesting problem but unable to find it’s editorial or contest. could u please help me out.