This is a easy question if you know about modulous.#programming #codeforcessolution #functions #array #cpp #problemsolving #maps#viral