Arindam Nag's submission of So Many Ways | CodeChef