Hint 1
* Declare 0 error and keep inserting pairs from given directions * If pairs are same then insert their sum else insert 1st number and make another pair from second number * Ignore 0 in making pairs * Insert from opposite of given direction, else will end up adding newly formed blocks