Hackerrank Tuples Python Solution Air Group Heating