Nikolay Domashenko's submission of Mode of Frequencies | CodeChef