Problem statement was retrieved from the following site: https://arena.topcoder.com/#/u/practiceCode/16527/48825/13918/2/326683
Problem statement was retrieved from the following site: https://arena.topcoder.com/#/u/practiceCode/16527/48825/13918/2/326683