CodeForces solution of the problems of different tiers of CodeForces with details of the logic used and testcase explainiation.