First commit with initial set of code done for HckerRank warmup question