Heramb Patil's submission of STRINGS AND WEIGHTS | CodeChef