* This code solves the problem ACM ICPC TEAM from hackerrank
 * https://www.hackerrank.com/challenges/acm-icpc-team