This problem is in Contest(s) below:
Contest 1498:hash
Contest 1497:YC_2021